package Solutions;

import java.io.BufferedReader;

public class Solution5 {
    public static void main(String[] args) {
        solustion5 solustion5=new solustion5();
    String str="awADwFd";
    String str1="adfrfda";

    solustion5.isPalindrome(str1);

    }
}
class  solustion5{
    public boolean isPalindrome(String str){
        StringBuilder sb=new StringBuilder();
        String lowerStr = str.toLowerCase();
        int j=0;
        for (int i=str.length()-1;i>=j;i--){
           char ch=str.charAt(i);
            if (ch==str.charAt(j)){
                j++;
            }else {
                System.out.println(str+"不是回文串");
                break;
            }
        }
        return true;
    }

}
